"""
A (downloadable) subtitle file
"""
class subtitle_file:
    # Episode number
    episodeNumber = False

    # Season number
    seasonNumber = False

    # url
    url = False

    # language
    language = None

    # filename
    filename = False

    """
    INIT
    """
    def __init__( self ):
        return

    """
    Object string conversion
    """
    def __str__( self ):
        str = self.seasonNumber + "x" + self.episodeNumber
        if self.language is not None:
            if type(self.language) is list:
                str = str + "(" + ', '.join( self.language ) + ")"
            else:
                str = str + "(" + self.language + ")"
        str = str + ", " + self.filename + " (" + self.url + ")"
        return str
